package cn.ranko.shiro.mapper;

import cn.ranko.shiro.model.SysPermission;

import java.util.List;

public interface SysPermissionMapper {
    int deleteByPrimaryKey(Integer permissionId);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(Integer permissionId);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

    Integer insertBatch(List<SysPermission> sysPermissions);

    Integer deletePermission(Integer roleId);

    List<SysPermission> selectByRoleId(Integer roleId);
}